/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2018
 */

package com.hzyb.shopEvaluation.model;

import java.util.List;
import java.util.Map;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Length;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


@Entity
@Table(name = "shop_evaluation")
public class ShopEvaluation {


	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	@Length(max=50)
	private java.lang.String evaluationSid;
	@Length(max=50)
	private java.lang.String commoditySid;
	@Length(max=3000)
	private java.lang.String content;
	@Length(max=50)
	private java.lang.String enterUserid;

	private java.util.Date enterDate;
	@Length(max=50)
	private java.lang.String updateUserid;

	private java.util.Date updateDate;

	private String grade;
	@Column(name="grade")
	public String getGrade() {
		return grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	private String oederId;
	@Column(name="order_id")
	public String getOederId() {
		return oederId;
	}

	public void setOederId(String oederId) {
		this.oederId = oederId;
	}

	@Column(name="score")
	public String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}

	private String score;
	//columns END


	public ShopEvaluation(){
	}

	public ShopEvaluation(
			java.lang.String evaluation
			){
		this.evaluationSid = evaluation;
	}



	public void setEvaluationSid(java.lang.String value) {
		this.evaluationSid = value;
	}

	@Id 
	@GeneratedValue(generator="custom-id")
	@GenericGenerator(name="custom-id", strategy = "uuid")
	@Column(name = "evaluation_sid", unique = true, nullable = false, insertable = true, updatable = true, length = 50)
	public java.lang.String getEvaluationSid() {
		return this.evaluationSid;
	}

	@Column(name = "commodity_sid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getCommoditySid() {
		return this.commoditySid;
	}

	public void setCommoditySid(java.lang.String value) {
		this.commoditySid = value;
	}

	@Column(name = "content", unique = false, nullable = true, insertable = true, updatable = true, length = 3000)
	public java.lang.String getContent() {
		return this.content;
	}

	public void setContent(java.lang.String value) {
		this.content = value;
	}


	@Column(name = "enter_userid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getEnterUserid() {
		return this.enterUserid;
	}

	public void setEnterUserid(java.lang.String value) {
		this.enterUserid = value;
	}



	@Column(name = "enter_date", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public java.util.Date getEnterDate() {
		return this.enterDate;
	}

	public void setEnterDate(java.util.Date value) {
		this.enterDate = value;
	}

	@Column(name = "update_userid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getUpdateUserid() {
		return this.updateUserid;
	}

	public void setUpdateUserid(java.lang.String value) {
		this.updateUserid = value;
	}



	@Column(name = "update_date", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public java.util.Date getUpdateDate() {
		return this.updateDate;
	}

	public void setUpdateDate(java.util.Date value) {
		this.updateDate = value;
	}

	private List<Map<String, Object>> imgs;
	@Transient
	public List<Map<String, Object>> getImgs() {
		return imgs;
	}

	public void setImgs(List<Map<String, Object>> imgs) {
		this.imgs = imgs;
	}
}

